<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page trimDirectiveWhitespaces="true" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
 		<title></title>
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<jsp:include page="/page/front/include.jsp"></jsp:include>
		<link rel="stylesheet" type="text/css" href="css/front/index.css" />
		<link rel="stylesheet" type="text/css" href="css/front/book.css" />
		
		<script type="text/javascript" src="lib/carouFredSel/js/carouFredSel.js"></script>
		<script type="text/javascript" src="lib/carouFredSel/js/carouFredSel_config.js"></script>

		<link rel="stylesheet" type="text/css" href="lib/slider/css/test_gallery.css" />
		<script type="text/javascript" src="lib/slider/js/simplegallery.js"></script>
		<script type="text/javascript" src="lib/slider/js/slider_config.js"></script>
	</head>
	<body class="index">
		<jsp:include page="/page/front/header.jsp"></jsp:include>
		<div class="body">
			<div class="bodyLeft">
				<s:action name="getCategoryMenu" executeResult="true" ignoreContextParams="true">
					<s:param name="id">1</s:param>
				</s:action>
			</div>
			<div class="bodyRight">
				<div class="slider">
        	 		<div id="simplegallery1"></div><div id="simplegallery1"></div>
				</div>
				<div class="blank"></div>
				<div class="hotBook">
					<div class="title"><strong>热卖书籍</strong>HOT</div>
		    		<div id="foo2">
					<s:subset source="#session.hotBooks" count="12">
						<s:iterator>
							<s:set name="title" value="value.title"></s:set>
							<a href='viewBook.do?id=<s:property value="value.bookID"/>'>
								<img src='<s:property value="value.picPath"/>' title='<s:property value="#title"/>' alt='<s:property value="#title"/>' />
								<p><s:property value="#title"/></p>
							</a>
						</s:iterator>
					</s:subset>
		    		</div>
		    		<div class="clearfix"></div>
		    		<a id="foo2_prev" class="prev" href="#"></a>
		    		<a id="foo2_next" class="next" href="#"></a>
				</div>
				<div class="blank"></div>
				<div class="newBook">
					<div class="title"><strong>新书上架</strong>NEW</div>
					<div class="middle">
						<ul>
						<s:subset source="#session.recentBooks" count="12">
							<s:iterator>
								<s:set name="title" value="value.title"></s:set>
								<li>
									<a href='viewBook.do?id=<s:property value="value.bookID"/>'>
										<img src='<s:property value="value.picPath"/>' title='<s:property value="#title"/>' alt='<s:property value="#title"/>'>
										<p><s:property value="value.title"/></p>
										<p class="red">￥<s:property value="value.price"/></p>
									</a>
								</li>
							</s:iterator>
						</s:subset>
						</ul>
						<div class="clearfix"></div>
					</div>
					<div class="bottom"></div>
				</div>
			</div>
		</div>
		<jsp:include page="/page/front/footer.jsp"></jsp:include>
	</body>
</html>
